package com.lam.code.base;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lam.code.base.domain.BaseEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @description baseMapper接口
 * @author lam
 */
public interface BaseMapper<T extends BaseEntity>
        extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T> {

    /**
     * 分页查询
     * @param page 分页对象
     * @param parameterMap 查询条件
     * @return
     */
     IPage<T> selectPageData(IPage<T> page, @Param("pm") Map<String, Object> parameterMap);
}
